package org.example.springmessage.service;

import org.example.springmessage.domain.User;

import java.util.List;

public interface UserService {
    User login(String username);

    boolean register(User user);

    User getUserById(Integer id);

    void update(User user);

    List<User> getAllUsers();
    boolean updatePhoto(User user);
}
